package com.qizhan100.qtools.web;

import java.util.Calendar;

import com.qizhan100.qtools.common.DateUtils;
import com.qizhan100.qtools.common.MD5;

public class WebTools {
    
    public static String cookieToken(String uid, String pwd) {
        return MD5.MD5Encode(uid + pwd);
    }
    
    public static String dateCode() {
        Calendar calendar = Calendar.getInstance();
        return DateUtils.format(calendar.getTime(), "yyyyMM");
    }
    
    public static String filter(String character)
    {
        character = character.replaceAll("[^(a-zA-Z0-9\\u4e00-\\u9fa5)]", "");
        return character;
    }
}
